<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title></title>
  <script src="../vue.js"></script>
</head>

<body>

  <div id="app">
    <!-- 1.不传参，默认有个 event 时间对象 -->
    <button @click='showa'>event事件对象</button>

    <!-- 2.传参，需要另外填参数 $event  -->
    <button @click='showb(20,$event)'>点击</button>
  </div>
  <script>
    //vue 核心---》围绕数据展开，操作数据
    const vm = new Vue({
      el: "#app",
      data: {
      },
      methods: {
        showa(e) {
          console.log(e);
        },
        showb(m, e) {
          console.log(m, e);
        },
      }
    })
  </script>
</body>

</html>